
package com.be.beadmin.basicData.service;

import com.alibaba.fastjson.JSONArray;
import com.be.beadmin.basicData.dto.input.OrgParentFilter;
import com.be.beadmin.basicData.entity.Organization;
import com.be.beadmin.basicData.dto.output.OrganizationEx;
import com.be.beadmin.basicData.dto.input.OrganizationDto;
import com.be.beadmin.basicData.dto.input.OrganizationQueryCriteria;
import org.springframework.data.domain.Page;
import com.be.beadmin.common.entity.PageEntity;
import org.springframework.data.domain.Pageable;
import java.util.Map;
import java.util.List;
import java.io.IOException;
import javax.servlet.http.HttpServletResponse;

/**
* @description 服务接口
* @author chenwei
* @date 2023-04-18
**/
public interface OrganizationService {

    /**
    * 分页的查询接口
    * @param pageEntity
    * @return
    */
    Page<OrganizationEx> getOrganizationByPage(OrgParentFilter pageEntity);

    /**
    * @param organizationDto
    */
    void addOrganization(OrganizationDto organizationDto);

    /**
    * @param organizationDto
    */
    void updateOrganization(OrganizationDto organizationDto);

    /**
    * @param id
    */
    void delOrganization(String id);

    /**
    * 删除多个角色
    * @param ids
    */
    void delOrganizations (List<String> ids);



    /**
     * 获取组织树
     * @return
     */
    JSONArray getOrgTree();


}